/* eslint-disable */
/**
 * Created by GYL on 2018/7/25
 * 权限涉及 文件上传 删除 结构变化 
 */
import React, { Component } from 'react';
import { Tabs, Form, Row, Tooltip, Input, Select, DatePicker, Popconfirm, TreeSelect, Col, message, Upload, Button, Icon, Empty } from 'antd';
import config from '../../../config';
import Util from '../../../utils/Util';
import request from '../../../utils/request';
import MyTable from "../../../components/common/MyTable";
import moment from 'moment';
import styles from '../EventPosting.less';
import MyModal from '../../../components/common/MyModal';
import PublicTemplate from '../../../services/PublicTemplate';
const { TextArea } = Input;
const FormItem = Form.Item;
const { SHOW_CHILD } = TreeSelect;
class SubeventsInfo extends Component {
    componentDidMount() {




        //获取文件结构
        this.getFileSiteTreeTwo()

        // console.log(this.props.SubeventsInfoData)
        const List = [
            {
                type: 'TextArea',
                paramName: 'subeventsName',
                id: 'subeventsName',
                title: '最多显示30个字',
                num: 30,
                key: "subeventsName",
                label: '子级事件名称',
                style: { width: 633 },

                span: 24,
                rows: 1,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.subeventsName,
                disabled: true

            },
            {
                type: 'TextArea',
                paramName: 'subeventsWeight',
                id: 'subeventsWeight',
                key: "subeventsWeight",
                label: '子级事件权重',
                stylesCol: { display: this.props.SubeventsInfoData.hierarchy == 1 ? '' : 'none' },
                style: { width: 170 },
                span: 12,
                rows: 1,
                rules: [{ ...config.reg.long3 }],
                title: '0/4',
                num: 4,
                colSpan: 24,
                disabled: true,
                initialValue: this.props.SubeventsInfoData.subeventsWeight,
            },
            {
                type: 'TextArea',
                paramName: 'milepost',
                id: 'milepost',
                key: "milepost",
                label: '是否为里程碑',
                style: { width: 170 },
                rules: [{ ...config.reg.required }],
                span: 12,
                rows: 1,
                stylesCol: { display: this.props.SubeventsInfoData.hierarchy == 1 ? '' : 'none' },
                initialValue: this.props.SubeventsInfoData.milepost == 1 ? '是' : '否',
                disabled: true
            },
            {
                type: 'TextArea',
                paramName: 'subeventsDescribe',
                id: 'subeventsDescribe',
                title: '最多显示30个字',
                num: 30,
                key: "subeventsDescribe",
                label: '子级事件说明',
                style: { width: 633 },

                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.subeventsDescribe,
                disabled: true

            },
            {
                type: 'TextArea',
                paramName: 'confirmUserName',
                id: 'confirmUserName',
                title: '最多显示30个字',
                num: 30,
                key: "confirmUserName",
                label: '子级确认用户',
                style: { width: 633 },

                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.confirmUserName,
                disabled: true

            },
            {
                type: 'TextArea',
                paramName: 'responsibleDepartmentName',
                id: 'responsibleDepartmentName',
                title: '最多显示30个字',
                num: 30,
                key: "responsibleDepartmentName",
                label: '子级责任部门',
                style: { width: 633 },

                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.responsibleDepartmentName,
                disabled: true

            },
            {
                type: 'TextArea',
                paramName: 'assDepRoles',
                id: 'assDepRoles',
                title: '最多显示30个字',
                num: 30,
                key: "assDepRoles",
                label: '子级协助部门',
                style: { width: 633 },

                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.assDepRoles,
                disabled: true

            },
            {
                type: 'TextArea',
                paramName: 'safetyInformation',
                id: 'safetyInformation',
                title: '最多显示200个字',
                num: 200,
                key: "safetyInformation",
                label: '安全防护措施',
                style: { width: 633 },
                disabled: true,
                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.safetyInformation,

            },
            {
                type: 'TextArea',
                paramName: 'safetyInformationUserStr',
                id: 'safetyInformationUserStr',
                title: '最多显示200个字',
                num: 200,
                key: "safetyInformationUserStr",
                label: '安全提示人员',
                style: { width: 633 },
                disabled: true,
                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.safetyInformationUserStr,

            },


            {
                type: 'datePicker',
                label: '计划开始时间',
                paramName: 'planStartTime',
                initialValue: this.props.SubeventsInfoData.planStartTime ? moment(this.props.SubeventsInfoData.planStartTime) : '',
                style: { width: 170 },
                span: 8,
                rows: 1,
                colSpan: 24,
                disabled: true,
            },
            {
                type: 'datePicker',
                label: '计划结束时间',
                paramName: 'planEndTime',
                initialValue: this.props.SubeventsInfoData.planEndTime ? moment(this.props.SubeventsInfoData.planEndTime) : '',
                style: { width: 170 },
                span: 8,
                rows: 1,
                colSpan: 24,
                disabled: true,
            },
            {
                type: 'datePicker',
                label: '实际开始时间',
                paramName: 'actualStartTime',
                initialValue: this.props.SubeventsInfoData.actualStartTime ? moment(this.props.SubeventsInfoData.actualStartTime) : '',
                style: { width: 170 },
                span: 8,
                rows: 1,
                colSpan: 24,
                disabled: true,
            },
            {
                type: 'datePicker',
                label: '实际结束时间',
                paramName: 'actualEndTime',
                initialValue: this.props.SubeventsInfoData.actualEndTime ? moment(this.props.SubeventsInfoData.actualEndTime) : '',
                style: { width: 170 },
                span: 8,
                rows: 1,
                colSpan: 24,
                disabled: true,
            },

            {
                type: 'select',
                paramName: 'sureWay',
                id: 'sureWay',
                key: "sureWay",
                label: '子级确认方式',

                style: { width: 170 },
                span: 8,
                rows: 1,
                colSpan: 24,
                placeholder: '请选择',
                disabled: true,

                initialValue: this.props.SubeventsInfoData.sureWay,
                options: [
                    { text: '用户勾选', value: 1 },
                    { text: '上传文档', value: 2 },


                ]
            },
            {
                type: 'select',
                paramName: 'auditWay ',
                id: 'auditWay ',
                key: "auditWay ",
                label: '审核方式',
                style: { width: 170 },
                span: 8,
                rows: 1,
                colSpan: 24,
                placeholder: '请选择',
                disabled: true,

                initialValue: this.props.SubeventsInfoData.auditWay,
                options: [
                    { text: '不需审核', value: 1 },
                    { text: '系统内审核', value: 2 },
                    { text: '系统内抄送', value: 3 },
                    { text: 'OA审批', value: 4 },
                ]
            },
            {
                type: 'TextArea',
                paramName: 'workTime',
                id: 'workTime',
                title: '最多显示200个字',
                num: 30,
                key: "workTime",
                label: '工期',
                style: { width: 170, height: 20 },
                disabled: true,
                span: 8,
                rows: 1,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.workTime,

            },
            {
                type: 'TextArea',
                paramName: 'practicalWorkTime',
                id: 'practicalWorkTime',
                title: '0/30',
                num: 30,
                key: "practicalWorkTime",
                label: '实际工期(天)',
                style: { width: 170, height: 20 },
                rules: [{ ...config.reg.long }],
                span: 8,
                rows: 1,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.practicalWorkTime,
                disabled: !this.props.flag
            },
            {
                type: 'TextArea',
                paramName: 'remark',
                id: 'remark',
                title: '最多显示30个字',
                num: 30,
                key: "remark",
                label: '子级事件备注',
                style: { width: 633 },
                // 
                span: 24,
                rows: 2,
                colSpan: 24,
                initialValue: this.props.SubeventsInfoData.remark,
                disabled: !this.props.flag

            },



        ]


        if (this.props.SubeventsInfoData.auditWay == 2) {
            //系统内审核
            List.push(
                {
                    type: 'TextArea',
                    paramName: 'auditUserStr',
                    id: 'auditUserStr',
                    title: '最多显示30个字',
                    num: 30,
                    key: "auditUserStr",
                    label: '审核用户',
                    style: { width: 633 },
                    // 
                    span: 24,
                    rows: 2,
                    colSpan: 24,
                    initialValue: this.props.SubeventsInfoData.auditUserStr,
                    disabled: true
    
                },
                {
                    type: 'TextArea',
                    paramName: 'auditCcUserStr',
                    id: 'auditCcUserStr',
                    title: '最多显示30个字',
                    num: 30,
                    key: "auditCcUserStr",
                    label: '抄送用户',
                    style: { width: 633 },
                    // 
                    span: 24,
                    rows: 2,
                    colSpan: 24,
                    initialValue: this.props.SubeventsInfoData.auditCcUserStr,
                    disabled: true
    
                },
            )

        } else if (this.props.SubeventsInfoData.auditWay == 3) {
            //系统内抄送
            List.push(
                {
                    type: 'TextArea',
                    paramName: 'auditCcUserStr',
                    id: 'auditCcUserStr',
                    title: '最多显示30个字',
                    num: 30,
                    key: "auditCcUserStr",
                    label: '抄送用户',
                    style: { width: 633 },
                    // 
                    span: 24,
                    rows: 2,
                    colSpan: 24,
                    initialValue: this.props.SubeventsInfoData.auditCcUserStr,
                    disabled: true
    
                },
            )
        } else if (this.props.SubeventsInfoData.auditWay == 4) {
            //OA审批
            List.push(
                {

                    type: 'TextArea',
                    paramName: 'oaUserName',
                    id: 'oaUserName',
                    title: '最多显示200个字',
                    num: 30,
                    key: "oaUserName",
                    label: 'OA审批',
                    span: 24,
                    rows: 2,
                    colSpan: 24,
                    style: { width: 650 },
                    initialValue: this.props.SubeventsInfoData.oaUserName,
                    disabled: true,
                },

            )
        }

        this.setState({
            arr: List
        })




    }

    getFileSiteTreeTwo = () => {
        request({
            url: '/pm-web/projectmanage/filesite/getFileSiteTreeTwo',
            method: 'POST',
            data: {}
        }).then(data => {
            if (data.rc === 0) {
                if (this.props.SubeventsInfoData.startDelay) {
                    this.state.arr.push(
                        {
                            type: 'TextArea',
                            paramName: 'startDelay',
                            id: 'startDelay',
                            title: '最多显示200个字',
                            num: 30,
                            key: "startDelay",
                            label: '开始延期理由',

                            span: 24,
                            rows: 2,
                            colSpan: 24,
                            style: { width: 650 },
                            initialValue: this.props.SubeventsInfoData.startDelay,
                            disabled: true,

                        },
                    )
                    this.setState({
                        arr: this.state.arr
                    })
                }

                if (this.props.SubeventsInfoData.endDelay) {
                    this.state.arr.push(
                        {
                            type: 'TextArea',
                            paramName: 'endDelay',
                            id: 'endDelay',
                            title: '最多显示200个字',
                            num: 30,
                            key: "endDelay",
                            label: '结束延期理由',

                            span: 24,
                            rows: 2,
                            colSpan: 24,
                            style: { width: 650 },
                            initialValue: this.props.SubeventsInfoData.endDelay,
                            disabled: true,

                        },
                    )
                    this.setState({
                        arr: this.state.arr
                    })
                }
                this.setState({
                    TreeSelecttreeData: data.ret.tmList
                })
            }
        })
    }

    myName = () => {
        alert(11111111111111)

    }

    state = {
        arr: [],
        // treeData1: [],
        pid: '',
        dataSource: [],
        TreeSelecttreeData: [],//文件结构
        flag: true
    }
    //计算文本域内数字个数
    onChangeNum = (v) => {
        var strs = getByteLen(v);
        function getByteLen(val) {
            strs = val.replace(/[\ |\~|\`|\!|\@|\#|\$|\%|\^|\&|\*|\(|\)|\-|\_|\+|\=|\||\\|\[|\]|\{|\}|\;|\:|\"|\'|\,|\<|\.|\>|\/|\?|\，|\。|\？|\：|\；|\‘|\’|\”|\“|\、|\·|\！|\（|\）|\》|\《|\『|\』]/g, "");
            return strs;
        }
        return strs.length

    }
    // 筛选条件组件change事件
    getChangeValue = (value, e) => {
        let t = this;
        let params = {};
        params[value] = e.target.value;
        t.setState({ params });
        //form表单赋值-----改变文本域数字个数
        this.props.form.setFieldsValue({ [value]: e.target.value })
        this.addChange(value, e.target.value.length)



    }



    getChangeValueList = (value, e) => {
        let t = this;
        let params = {};
        params[value] = e.target.value;
        t.setState({ params });
        //form表单赋值-----改变文本域数字个数
        this.props.form.setFieldsValue({ [value]: e.target.value })
        this.addChangeList(value, e.target.value.length)


    }

    addChangeList = (v, num) => {
        this.state.arr[10].list.forEach(item => {
            if (item.paramName === v) {
                item.title = `${num}/${item.num}字`
            }
        });
    }

    addChangeSon = (v, num, index) => {
        this.state.sonArr[index].sonArrList.forEach(item => {
            if (item.paramName === v) {
                item.title = `${num}/${item.num}字`
            }
        });
    }
    //新增改变tooplie的显示文字
    addChange = (v, num) => {
        this.state.arr.forEach(item => {
            if (item.paramName === v) {
                item.title = `${num}/${item.num}字`
            }
        });
    }




    selectedChange(fun, nextParams, paramName, index, value) {
        // console.log(fun, nextParams, paramName, index, value)


        let t = this;
        let params = {};
        params[paramName] = value;
        if (paramName) {
            t.setState({ params }, () => {
            });
        }
        if (typeof fun === "function") {
            fun(value);
            if (nextParams)
                t.props.form.setFieldsValue({
                    [nextParams]: ''
                })
        }
    }


    //多选
    onSelectChange = (selectedRowKeys, row) => {
        // console.log(selectedRowKeys, row)
        this.setState({ selectedRowKeys, row })
    };


    //上传
    onsc = (info) => {
        if (info.file.status !== 'uploading') {
        }
        if (info.file.status === 'done') {
            message.success(`${info.file.name} 上传成功`);
            this.onsaveSc()
            this.getFileList()


        } else if (info.file.status === 'error') {
            message.error(`${info.file.name} 上传失败.`);
        }
    }

    //查询上传附件
    onsaveSc = () => {
        request({
            url: `/pm-web/projectmanage/knowledgebase/getFileList`,
            method: 'POST',
            data: { parentId: this.state.pid, tableName: 'ta_re_event_sub' }
        }).then(data => {
            // console.log(data)
            if (data.rc == 0) {

                this.setState({
                    dataSource: data.ret.fileList
                })
            }
        })
    }
    //bianji查询上传附件
    getFileList = () => {
        request({
            url: `/pm-web/projectmanage/knowledgebase/getFileList`,
            method: 'POST',
            data: { parentId: this.state.pid, tableName: 'ta_re_event_sub' }
        }).then(data => {
            // console.log(data)
            if (data.rc == 0) {

                this.setState({
                    dataSource: data.ret.fileList
                })
            }
        })
    }

    //删除上传文件
    onDelete = (record) => {
        // console.log(record)
        if (!this.props.flag) {
            return
        }
        request({
            url: `/pm-web/projectmanage/fileupload/deleteFile?id=${record.id}`,
            method: 'GET',
        }).then(data => {
            if (data.rc == 0) {
                message.success('删除成功');
                this.onsaveSc()
            }
        })
    }


    TreeSelectselectedChange = (record, index, value) => {
        // console.log(record, index, value)


        request({
            url: `/pm-web/projectmanage/fileupload/fileBindingCatalog`,
            method: 'POST',
            data: { catalogId: value, fileId: record.id }
        }).then(data => {
            if (data.rc === 0) {
                this.state.dataSource[index].fileSiteId = value
                setTimeout(() => {
                    this.setState({
                        dataSource: this.state.dataSource
                    })
                }, 500)
            } else {
                message.warning(`${data.err}`)
            }

        })
    }




    // 取消保存
    onCancel = (type) => {
        let t = this;
        t.setState({
            [type]: false,
            modalBtnLoading: false
        })

    };


    render() {
        let { getFieldDecorator } = this.props.form;
        let t = this;
        const columns = [

            {
                title: '文件名',
                dataIndex: 'fileName',
                width: '20%',
                align: "center",
            },
            {
                title: "文件所属结构",
                dataIndex: 'fileType',
                width: '25%',
                align: "center",
                render: (text, record, index) => {
                    return (
                    <span>{PublicTemplate.stringToEllipsis(record.fileSiteStr,8)}</span>
                    )
                }
            },

            {
                title: '上传时间',
                width: '20%',
                dataIndex: 'createTime',
                align: "center",
                render: (text, record, index) => {
                    return <span>
                        {moment(text).format("YYYY-MM-DD HH:mm:ss")}
                    </span>
                }
            },
            {
                title: '上传人',
                width: '15%',
                dataIndex: 'uploadUser',
                align: "center",
            },

        ]

        return (
            <MyModal
                mask={false}
                width={800}
                {...this.props}
                title={'事件详情'}
                destroyOnClose={true}
            >

                <div style={{ height: "45vh", overflow: 'auto', paddingBottom: '100px' }} className={styles.Small1}>
                    {
                        this.state.arr.length > 0 ?
                            <Form layout={'inline'} style={{ paddingLeft: 40, paddingRight: 40 }} >
                                <Row gutter={48} key={55555}>
                                    {

                                        this.state.arr.map((item, index) => {
                                            if (item.type === 'TextArea') {
                                                return (
                                                    // <Col span={item.span} key={index}>
                                                    <Col span={item.span || 8} key={index} className={item.className} style={item.stylesCol}>
                                                        <Form.Item label={item.label} key={item.paramName} >
                                                            <Tooltip
                                                                trigger={['focus']}
                                                                title={item.title}
                                                                placement="topLeft"
                                                                overlayClassName="numeric-input"
                                                            >
                                                                {
                                                                    getFieldDecorator(item.paramName, {
                                                                        initialValue: item.initialValue ? item.initialValue : '',
                                                                        rules: item.rules || null
                                                                    })(

                                                                        <TextArea
                                                                            className={item.shuoming}
                                                                            style={item.style}
                                                                            placeholder={item.placeholder}
                                                                            onChange={this.onChange}
                                                                            rows={item.rows}
                                                                            maxLength={item.num}
                                                                            disabled={item.disabled} id={[item.paramName]}
                                                                            size={config.size} style={item.style}
                                                                            onChange={this.getChangeValue.bind(this, item.paramName)}
                                                                        />

                                                                    )
                                                                }
                                                            </Tooltip>
                                                        </Form.Item>
                                                    </Col>
                                                )
                                            } else if (item.type === 'input') {
                                                return (
                                                    <Col span={item.span || 8} key={index} className={item.className}>
                                                        <Form.Item label={item.label} key={item.paramName}>
                                                            {
                                                                getFieldDecorator(item.paramName, {
                                                                    initialValue: item.initialValue ? item.initialValue : '',
                                                                    rules: item.rules || null
                                                                })(
                                                                    <input
                                                                        style={item.style}
                                                                        type='number'
                                                                        disabled={item.disabled} id={[item.paramName]}
                                                                        size={config.size} style={item.style} onChange={this.getChangeValue.bind(this, item.paramName)}
                                                                    />
                                                                )
                                                            }
                                                        </Form.Item>
                                                    </Col>
                                                )
                                            } else if (item.type === 'select') {
                                                return (
                                                    <Col span={item.span || 8} key={index} className={item.className} style={item.stylesCol}>
                                                        <Form.Item label={item.label} key={item.paramName} >
                                                            {
                                                                getFieldDecorator(item.paramName, {
                                                                    initialValue: item.initialValue ? item.initialValue : (item.options[0] ? Util.numToString(item.options[0].value) : item.options[0]),
                                                                    rules: item.rules || null
                                                                })(
                                                                    <Select
                                                                        size={config.size}
                                                                        showSearch
                                                                        mode={item.mode}
                                                                        placeholder="Select a person"
                                                                        style={{ width: item.width || 170 }}
                                                                        optionFilterProp="children"
                                                                        dropdownMatchSelectWidth={t.props.dropdownMatchSelectWidth}


                                                                        disabled={item.disabled}
                                                                    >
                                                                        {
                                                                            item.options.map(option => {
                                                                                return (
                                                                                    <Select.Option key={option.value}
                                                                                        value={Util.numToString(option.value)}
                                                                                    >
                                                                                        {option.text}
                                                                                    </Select.Option>

                                                                                )
                                                                            })
                                                                        }
                                                                    </Select>
                                                                )
                                                            }
                                                        </Form.Item>
                                                    </Col>
                                                )
                                            } else if (item.type === 'datePicker') {
                                                let disabled = item.disabledDate ? disabledDate : null;
                                                return (
                                                    <Col span={item.span || 8} key={index} className={item.className}>
                                                        <Form.Item label={item.label} key={item.paramName} >
                                                            {
                                                                getFieldDecorator(item.paramName, {
                                                                    initialValue: item.initialValue ? item.initialValue : null,
                                                                    rules: item.rules || null
                                                                })(
                                                                    <DatePicker size={config.size} disabledDate={disabled} disabled={item.disabled} />
                                                                )
                                                            }
                                                        </Form.Item>
                                                    </Col>
                                                )
                                            } else if (item.type === 'treeSelect') {
                                                return (
                                                    <Col span={item.span || 8} key={index} className={item.className}>
                                                        <Form.Item label={item.label} key={item.paramName} >
                                                            {
                                                                getFieldDecorator(item.paramName, {
                                                                    initialValue: item.initialValue ? item.initialValue : null,
                                                                    rules: item.rules || null
                                                                })(
                                                                    <TreeSelect
                                                                        showSearch
                                                                        disabled={item.disabled}
                                                                        treeData={item.treeData}
                                                                        style={item.style}
                                                                        treeCheckable={item.treeCheckable}
                                                                        showCheckedStrategy={SHOW_CHILD}
                                                                        searchPlaceholder={'请选部门'}
                                                                    />
                                                                )
                                                            }
                                                        </Form.Item>
                                                    </Col>
                                                )
                                            } else if (item.type === 'title') {
                                                return (
                                                    <Row key={item.name}>
                                                        <h2 style={{ fontSize: 14, fontWeight: 700 }}><span style={{ borderTopLeftRadius: 3, borderTopRightRadius: 3, padding: 1, color: "#fff", backgroundColor: "#03a9f4" }}> {item.name}</span></h2>

                                                        {/* <div style={{ width: "100%", borderBottom: "1px solid #ccc",marginBottom:10 }}></div> */}
                                                    </Row>


                                                )
                                            } else if (item.type === 'arr') {
                                                return (
                                                    item.list.map((item, index) => {
                                                        if (item.type === 'TextArea') {
                                                            return (
                                                                <Col span={item.span || 8} key={index} className={item.className}>
                                                                    <Form.Item label={item.label} key={item.paramName}>
                                                                        <Tooltip
                                                                            trigger={['focus', 'hover']}
                                                                            title={item.title}
                                                                            placement="topLeft"
                                                                            overlayClassName="numeric-input"
                                                                        >
                                                                            {
                                                                                getFieldDecorator(item.paramName, {
                                                                                    initialValue: item.initialValue ? item.initialValue : '',
                                                                                    rules: item.rules || null
                                                                                })(

                                                                                    <TextArea
                                                                                        style={item.style}
                                                                                        placeholder={item.placeholder}
                                                                                        // onChange={this.onChange}
                                                                                        rows={item.rows}
                                                                                        maxLength={item.num}
                                                                                        disabled={item.disabled} id={[item.paramName]}

                                                                                    />

                                                                                )
                                                                            }
                                                                        </Tooltip>
                                                                    </Form.Item>
                                                                </Col>
                                                            )
                                                        }

                                                    })


                                                )
                                            } else if (item.type === 'button') {
                                                return (
                                                    <button onClick={this.addListfx}>新增</button>
                                                )
                                            }

                                        })
                                    }

                                </Row>
                            </Form> : <Empty />
                    }

                    <div style={{ width: '98%', height: 'auto', padding: '0px 40px', display: this.props.SubeventsInfoData.sureWay == 2 ? '' : 'none' }}>
                        <MyTable
                            pagination={false}
                            columns={columns}
                            dataSource={this.props.SubeventsInfoData.fileList}
                        />
                    </div>

                </div>
            </MyModal>
        )
    }
}

export default Form.create()(SubeventsInfo);
